package cn.dceast.former.dao;

import cn.dceast.common.generator.MyMapper;
import cn.dceast.former.model.EyeModelData;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;


@Mapper
public interface EyeModelDataMapper extends MyMapper<EyeModelData> {
    List<Map<String,Object>> getModelList(Map<String, Object> params);

    Integer getModelListCount(Map<String, Object> params);

    List<Map<String,Object>> getModelInfoById(Map<String, Object> paramMap);


    void deleteTableByName(Map<String, Object> paramMap);

    void insertDataToTable(Map map);

    void creatTable(Map map);

    int addModelBasicInfo(EyeModelData eyeModelData);

    Map<String,Object> getModelDataById(int modelId);

    Map<String,Object> getModelEvalUateById(Map<String, Object> paramMap);

    List<Map<String,Object>> getModelByName(Map<String, Object> paramMap);

    void deleteModelByName(Map<String, Object> paramMap);

    void editModelBasicInfo(EyeModelData emd);

    void updateModelState(Map<String, Object> paramMap);

    void deleteModelById(Map<String, Object> paramMap);

    List<Map<String,Object>> getModelNameAndDescById(int modelId);

    List<Map<String,Object>> getModelTableById(int modelId);

    void deleteContactInfoByTableName(Map<String, Object> paramMap);

    List<Map<String,Object>> getModelByIdAndName(Map<String, Object> paramMap);

    int checkTokenState(String token);

    List<Map<String,Object>> getResDataByApi(Map<String, Object> paramMap);
}